FROM golang:1.19 as builder

WORKDIR /app


COPY . .

RUN CGO_ENABLED=0 GOPROXY="https://goproxy.cn" go build -o ingress-manager main.go


FROM alpine:3.16

WORKDIR /app

COPY --from=builder /app/ingress-manager .

CMD ["./ingress-manager"]
